//
//  FamilyRoomService.h
//  AILock
//
//  Created by 谭亚明 on 2020/6/23.
//  Copyright © 2020 tym. All rights reserved.
//

#import "LMJBaseRequest.h"
#import "RoomModel.h"
#import "UserModel.h"
NS_ASSUME_NONNULL_BEGIN

/* 创建修改家庭房间*/
#define urlFamilyroomcreatefamilyroom  @"/family-room/create-family-room"

/* 删除家庭房间*/
#define urlFamilyroomdeletefamilyroom  @"/family-room/delete-family-room"

/* 添加修改家庭房间用户*/
#define urlFamilyroomusercreatefamilyroomuser  @"/family-room-user/create-family-room-user"

/*修改家庭房间用户状态*/
#define urlFamilyroomuserupdatefamilyroomuser @"/family-room-user/update-family-room-user"

/* 查找家庭所有房间*/
#define urlFamilyroomfindfamilyroom @"/family-room/find-family-room"

/* 获取房间家庭成员列表*/
#define urlFamilyroomuserfindfamilyroomusers  @"/family-room-user/find-family-room-users"

/* 获取用户详情*/
#define urlFamilyroomuserroomuserdetail @"/family-room-user/room-user-detail"

/* 获取家庭所有房间及所有设备*/
#define urlFamilyinfofindfamilyroomequipment @"/family-info/find-family-room-equipment"


@interface FamilyRoomService : LMJBaseRequest

/*创建修改家庭房间*/
-(void)getFamilyroomcreatefamilyroomFamilyId:(NSInteger)famileId
                                  roomName:(NSString*)roomName roomDesc:(nullable NSString* )roomDesc image:(nullable NSString*)image
                                       rooID:(NSInteger)rooid completion:(void(^)(LMJBaseResponse *response))completion;

/*删除家庭房间*/
-(void)getDeletefamilyroomFamilyId:(NSInteger)famileId
                        completion:(void(^)(LMJBaseResponse *response))completion;


/*添加修改家庭房间用户*/
-(void)getCreatefamilyroomuserFamilyId:(NSInteger)famileId
                          familyRoomId:(NSInteger)familyRoomId
                            userIdList:(NSArray*)userIdList
                            completion:(void(^)(LMJBaseResponse *response))completion;


/*修改家庭房间用户状态*/
//状态 1/正常 2/禁用
-(void)getUpdatefamilyroomuserRoomUserID:(NSInteger)userid
                          status:(NSInteger)status
                            completion:(void(^)(LMJBaseResponse *response))completion;

//查找家庭所有房间
-(void)getFindfamilyroomfamilyId:(NSInteger)familyId
                      completion:(void(^)(LMJBaseResponse *response,NSArray *roosArry))completion;


//获取房间家庭成员列表
-(void)getFindfamilyroomusersFamilyId:(NSInteger)familyId
familyRoomId:(NSInteger)familyRoomId
                           completion:(void(^)(LMJBaseResponse *response,NSArray *roosArry))completion;

//获取用户详情
-(void)getRoomuserdetailUserId:(NSInteger)userId
                    completion:(void(^)(LMJBaseResponse *response,UserModel *userModel))completion;

//获取家庭所有房间及所有设备
-(void)getFindfamilyroomequipment:(NSInteger)familyId
                       completion:(void(^)(LMJBaseResponse *response,NSArray< RoomModel*>*roosArry))completion;
@end

NS_ASSUME_NONNULL_END
